<html>
<head>
	<meta charset='utf-8' />
	<title>Fang</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
	<style>
		@media screen and (max-width:450px){
			#nav_bottom{width:98%;margin:0 auto}
			#content{width:98%;margin:0 auto}
			/*页面宽度900以下时 .abc的宽度为450*/
		}
		@media screen and (min-width:450px){
			#nav_bottom{width:450px;margin:0 auto}
			#content{width:450px;margin:0 auto}
			/*页面宽度900以下时 .abc的宽度为450*/
		}
		a{
			text-decoration:none;
		}
		select{
			appearance:none;-moz-appearance:none;-webkit-appearance:none;
		}
	</style>
</head>
<body style='padding:0;margin:0;background:#fce;border:0px solid'>

</body>
</html>
<script src='./Public/Js/jquery.js'></script>
<script src='./Public/Js/md5.js'></script>
<script>
	//sessionStorage.clear();
	//保持sess存储的大小，超限后清除页面sess
	function sess_keep(){
		var count = 0;
		for(var i=0;i<sessionStorage.length;i++){
			count += eval('sessionStorage.'+sessionStorage.key(i)).length;
		}
		if(count > 1911000){
			for(var i=0;i<sessionStorage.length;i++){
				var clear_p = /page_/gi;
				if(clear_p.test(sessionStorage.key(i))){
					sessionStorage.removeItem(sessionStorage.key(i));
				}else{
					continue;
				}
			}
		}
		//alert(count);
	}

	index_init();





	
		//alert(sessionStorage.expire_stat);
	//页面初始化
	function index_init(){
		expire_stat();
		var t = new Date().getTime();
		//如果没有缓存 或 缓存以过期 则加载并缓存页面数据
			$.ajax({
				//url:'/Fang/Before/index',
				url:'http://shenghuo.th0435.top/index.php/Fang/Before/index',
				success:function(res){
					sessionStorage.index = res;
					$('body').html(res);
				}
			});
		if(!sessionStorage.index || !sessionStorage.stamp || (600+parseInt(sessionStorage.stamp)) < t){
			sessionStorage.stamp=t;
		}else{		//如果缓存数据未过期则读取
		//	$('body').html(sessionStorage.index);
		}
	}


	//设置过期状态
	function expire_stat(){
		if(!sessionStorage.expire_time || parseInt(sessionStorage.expire_time)+300000 < new Date().getTime()){
			sessionStorage.expire_time = new Date().getTime();
			if(sessionStorage.expire_stat){
				sessionStorage.expire_stat = parseInt(sessionStorage.expire_stat) + 1;
			}else{
				sessionStorage.expire_stat = 1;
			}
		}
	}





</script>












